package com.feimeng.lovehulv.entity;

public class User {

	private int uid;
	private String sid;
	private String name;
	private String iconUrl;
	private String contact;
	private int regtime;
	private String sign;

	public User(int uid, String sid, String name) {
		super();
		this.uid = uid;
		this.sid = sid;
		this.name = name;
	}

	public User(int uid, String name, String iconUrl, String contact,
			int regtime, String sign) {
		super();
		this.uid = uid;
		this.name = name;
		this.iconUrl = iconUrl;
		this.contact = contact;
		this.regtime = regtime;
		this.sign = sign;
	}

	public int getUid() {
		return uid;
	}

	public void setUid(int uid) {
		this.uid = uid;
	}

	public String getSid() {
		return sid;
	}

	public void setSid(String sid) {
		this.sid = sid;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getIconUrl() {
		return iconUrl;
	}

	public void setIconUrl(String iconUrl) {
		this.iconUrl = iconUrl;
	}

	public String getContact() {
		return contact;
	}

	public void setContact(String contact) {
		this.contact = contact;
	}

	public int getRegtime() {
		return regtime;
	}

	public void setRegtime(int regtime) {
		this.regtime = regtime;
	}

	public String getSign() {
		return sign;
	}

	public void setSign(String sign) {
		this.sign = sign;
	}

	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result + uid;
		return result;
	}

	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		User other = (User) obj;
		if (uid != other.uid)
			return false;
		return true;
	}

	@Override
	public String toString() {
		return "User [name=" + name + "]";
	}

}
